-- GENERATED SPELL FOR [Spectral Stallion] --


function spell0_15548(pUnit, Event) --@Absorb Vitality,Self--
pUnit:FullCastSpellOnTarget(29323,pUnit)
pUnit:RegisterEvent('Sorts_15548', 15349, 1)
end

function spell1_15548(pUnit, Event) --@Hoof Strike,n/a--
pUnit:FullCastSpellOnTarget(29577,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15548', 615, 1)
end

function Sorts_15548(pUnit, Event)
local choix_sorts_15548 = math.random(0, 1)
if choix_sorts_15548 == 0 then
pUnit:RegisterEvent('spell0_15548', 1, 1)
end
if choix_sorts_15548 == 1 then
pUnit:RegisterEvent('spell1_15548', 1, 1)
end
end

function mob15548_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15548', math.random(1500, 3000), 1)
end

function mob15548_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15548_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15548_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15548, 1, 'mob15548_Action')
RegisterUnitEvent(15548, 2, 'mob15548_Leave')
RegisterUnitEvent(15548, 3, 'mob15548_Kill')
RegisterUnitEvent(15548, 4, 'mob15548_Die')
